-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrate jsx-ast-utils #634
Conversation
These were the use cases I could locate for now.
@@ -5,6 +5,8 @@ | |||
*/ | |||
'use strict'; | |||
|
|||
var propName = require('jsx-ast-utils').propName; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it'd be nice if we could require via path, ie, var propName = require('jsx-ast-utils/propName')
rather than having to pull everything in and grab one property - but obv this is not a blocker :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah yes ill export from root directory too 😄
Awesome, love the code sharing |
This is really great! LGTM. if it is good to merge for you too I think we can merge it. |
Good for me - will try and continually send PR's as we flesh out |
Merged. Thank you very much :) |
as discussed in evcohen/eslint-plugin-jsx-a11y#54 we can integrate the jsx-ast-utils package here for better code reuse across these packages.
We can start adding API functions to fit use cases for this project as well to
jsx-ast-utils
in the next few iterations (i.e. styling and spacing functions)